package com.jbm.jbmsupplier.util;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * Created by lyh on 2017-03-06.
 */

public class EguardLogEntity extends com.jbm.jbmsupplier.util.ICtrl implements Serializable {
    private static final long serialVersionUID = -5858128932073198395L;
    private int eglogId;
    private int loginId;
    private int eguardId;
    private int egkeyId;
    private int lastCount;
    private Timestamp openDate;
    private Timestamp createDate;
    private Timestamp ordDate;
    private Timestamp callDate;
    private Integer isOpen;
    private Integer tryCnt;
    private String phoneModule;
    private String openType;
    private String errinfo;


    public int getEglogId() {
        return eglogId;
    }

    public void setEglogId(int eglogId) {
        this.eglogId = eglogId;
    }


    public int getLoginId() {
        return loginId;
    }

    public void setLoginId(int loginId) {
        this.loginId = loginId;
    }

    public int getEguardId() {
        return eguardId;
    }

    public void setEguardId(int eguardId) {
        this.eguardId = eguardId;
    }

    public int getEgkeyId() {
        return egkeyId;
    }

    public void setEgkeyId(int egkeyId) {
        this.egkeyId = egkeyId;
    }


    public int getLastCount() {
        return lastCount;
    }

    public void setLastCount(int lastCount) {
        this.lastCount = lastCount;
    }


    public Timestamp getOpenDate() {
        return openDate;
    }

    public void setOpenDate(Timestamp openDate) {
        this.openDate = openDate;
    }

    public Timestamp getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Timestamp createDate) {
        this.createDate = createDate;
    }


    public Timestamp getOrdDate() {
        return ordDate;
    }

    public void setOrdDate(Timestamp ordDate) {
        this.ordDate = ordDate;
    }


    public Timestamp getCallDate() {
        return callDate;
    }

    public void setCallDate(Timestamp callDate) {
        this.callDate = callDate;
    }


    public Integer getIsOpen() {
        return isOpen;
    }

    public void setIsOpen(Integer isOpen) {
        this.isOpen = isOpen;
    }


    public Integer getTryCnt() {
        return tryCnt;
    }

    public void setTryCnt(Integer tryCnt) {
        this.tryCnt = tryCnt;
    }


    public String getPhoneModule() {
        return phoneModule;
    }

    public void setPhoneModule(String phoneModule) {
        this.phoneModule = phoneModule;
    }


    public String getOpenType() {
        return openType;
    }

    public void setOpenType(String openType) {
        this.openType = openType;
    }


    public String getErrinfo() {
        return errinfo;
    }

    public void setErrinfo(String errinfo) {
        this.errinfo = errinfo;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        EguardLogEntity that = (EguardLogEntity) o;

        if (egkeyId != that.egkeyId) return false;
        if (eglogId != that.eglogId) return false;
        if (eguardId != that.eguardId) return false;
        if (lastCount != that.lastCount) return false;
        if (loginId != that.loginId) return false;
        if (callDate != null ? !callDate.equals(that.callDate) : that.callDate != null) return false;
        if (createDate != null ? !createDate.equals(that.createDate) : that.createDate != null) return false;
        if (errinfo != null ? !errinfo.equals(that.errinfo) : that.errinfo != null) return false;
        if (isOpen != null ? !isOpen.equals(that.isOpen) : that.isOpen != null) return false;
        if (openDate != null ? !openDate.equals(that.openDate) : that.openDate != null) return false;
        if (openType != null ? !openType.equals(that.openType) : that.openType != null) return false;
        if (ordDate != null ? !ordDate.equals(that.ordDate) : that.ordDate != null) return false;
        if (phoneModule != null ? !phoneModule.equals(that.phoneModule) : that.phoneModule != null) return false;
        if (tryCnt != null ? !tryCnt.equals(that.tryCnt) : that.tryCnt != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = eglogId;
        result = 31 * result + loginId;
        result = 31 * result + eguardId;
        result = 31 * result + egkeyId;
        result = 31 * result + lastCount;
        result = 31 * result + (openDate != null ? openDate.hashCode() : 0);
        result = 31 * result + (createDate != null ? createDate.hashCode() : 0);
        result = 31 * result + (ordDate != null ? ordDate.hashCode() : 0);
        result = 31 * result + (callDate != null ? callDate.hashCode() : 0);
        result = 31 * result + (isOpen != null ? isOpen.hashCode() : 0);
        result = 31 * result + (tryCnt != null ? tryCnt.hashCode() : 0);
        result = 31 * result + (phoneModule != null ? phoneModule.hashCode() : 0);
        result = 31 * result + (openType != null ? openType.hashCode() : 0);
        result = 31 * result + (errinfo != null ? errinfo.hashCode() : 0);
        return result;
    }
}
